﻿using CraftParameterConfig.Infrastructure.Common.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CraftParameterConfig.Domain.Entity
{
    public class ParameterAccess:EntityBase
    {
        public Guid MainID { get; set; }
        public Guid GuidID { get; set; }
        public int Status { get; set; }
        public DateTime Validity { get; set; }
        public string OrderBatch { get; set; }
        public FileType FileType { get; set; }
        public ParameterAccess()
        { }
        public ParameterAccess(Guid mainId, DateTime validity, string orderBatch, FileType fileType)
        {
            MainID = mainId;
            GuidID = Guid.NewGuid();
            Status = 0;
            Validity = validity;
            OrderBatch = orderBatch;
            FileType = fileType;
        }
    }
}
